extends Node2D

@onready var sprite:Sprite2D=$Sprite2D


# func _process(delta):
# 	var TIME = Time.get_ticks_msec() / 1000.0
# 	var a=(sin(TIME)+1)/2
# 	print('TIME:' + str(TIME))
# 	print('A:' + str(a))

func _process(_delta):
	
	if Input.is_action_just_pressed('ui_accept'):
		var speed=randf_range(1,10)
		sprite.material.set_shader_parameter('speed',speed)

		# var big=sprite.material.get_shader_parameter('big')
	
	if Input.is_action_just_pressed('mouse_left'):
		var color= Vector4(randf(),randf(),randf(),1)
		sprite.material.set_shader_parameter('color',color)